package com.lovo.shirodemo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lovo.shirodemo.dao.UserInfoDAO;
import com.lovo.shirodemo.model.UserInfoDO;
import com.lovo.shirodemo.model.dto.UserInfoDTO;
import com.lovo.shirodemo.service.UserInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author bdk
 * @since 2020-11-26
 */
@Service
public class UserInfoServiceImpl extends ServiceImpl<UserInfoDAO, UserInfoDO> implements UserInfoService {
    @Resource
    private UserInfoDAO userInfoDAO;
    @Override
    public UserInfoDTO findByPhone(String phone) {

        UserInfoDTO userInfoDTO = userInfoDAO.selectByPhone(phone);

        return userInfoDTO;
    }
}
